<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>CSS 3D转换</title>
	<style>
		body {
			margin: 0;
			padding: 0;
			background-color: #F7F7F7;
		}

		.rotateZ {
			height: 226px;
			padding-top: 100px;
			text-align: center;
		}

		.rotateZ img {
			transition: all 5s;
		}

		.rotateZ:hover img {
			transform: perspective(100px) rotateZ(-180deg);
			
		}
	</style>
</head>
<body>
	<div class="rotateZ">
		<img src="./images/z.jpg" alt="">
	</div>
</body>
</html>